package com.aizuda.boot.modules.business.contract.mapper;

import com.aizuda.boot.modules.business.contract.entity.ContractAttachmentConfirmEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ContractAttachmentConfirmMapper extends BaseMapper<ContractAttachmentConfirmEntity> {
    
    /**
     * 根据合同ID和文件ID列表删除记录
     * @param contractId 合同ID
     * @param fileIds 文件ID列表
     * @return 删除的记录数
     */
    int deleteByContractIdAndFileIds(@Param("contractId") Integer contractId, @Param("fileIds") List<Integer> fileIds);
    
    /**
     * 批量插入记录
     * @param entities 实体列表
     * @return 插入的记录数
     */
    int batchInsert(@Param("list") List<ContractAttachmentConfirmEntity> entities);
} 